<div class="form-inline">
    
    <input type="text" name="busca" class="span4" placeholder="Buscar notícia">
    <input type="submit" name="btnBuscar" name="Buscar" class="btn">
    
</div>

<br>

<table class="table table-striped table-bordered table-hover">

    <tr align="center">
        <th width="150" height="40">A&ccedil;&otilde;es</th>
        <th>Título</th>
        <th width="50">Status</th>
        <th width="100">Data</th>
    </tr>

    <?php
    $sql = "SELECT * FROM noticia 
    WHERE $onde 
    ORDER BY not_data DESC";
    $res = sql($sql);
    while($linha = mysql_fetch_array($res)) {
        
        if ($linha['not_ok'] == 1){ $aux = 0; } else { $aux = 1; }
        
    ?>

    <tr>
        <td height="40" align="center">
          <p><input name="excluir[]" type="checkbox" value="<?=$linha['not_id'];?>"/><i class="icon-trash"></i> Excluir</p>
          <p><a href="?pag=noticia_alt&AMP;not_id=<?=$linha['not_id'];?>"><i class="icon-pencil"></i> Editar</a></p>
          <p><a href="?pag=midia&AMP;not_id=<?=$linha['not_id'];?>"><i class="icon-picture"></i> Mídias</a></p>
          <p><a href="?pag=noticia&AMP;not_id=<?=$linha['not_id'];?>&aux=<?php echo $aux; ?>"><i class="icon-off"></i> Habilitar/Desabilitar</a></p>
        </td>
        <td>
          <?php
          echo "<p>{$linha['not_nome']}</p>";
          echo "<p>".nl2br(substr($linha['not_msg'],200))."</p>";
          ;?>
        </td>
        <td><?php if ($linha['not_ok'] == 1){ echo "<span style='color:#316ac5'>Habilitado</span>"; } else { echo "<span style='color:#f00000'>Desabilitado</span>";} ?></td>
        <td><?=todatabr($linha['not_data']);?></td>
    </tr>

    <? } ?>
</table>